package crmdna.payment;

import paypalnvp.core.PayPal;
import paypalnvp.core.PayPal.Environment;
import paypalnvp.fields.Currency;
import paypalnvp.profile.BaseProfile;
import paypalnvp.profile.Profile;

public class VendorPayment {
	
	private String userName = "";
	private String password = ""; 
	private String signature = "";	
	
	public Environment env = Environment.SANDBOX;	
	public Currency currency = Currency.SGD;
	public PayPal paypal;
	public String notifyUrl = "http://crmdna-payment.appspot.com/ipn";
	
	public VendorPayment(String vendor) {
		
		if (vendor.equals("BhairaviYoga")) {
			userName = "test.paypal_api1.bhairaviyoga.sg";
			password = "1395726643";
			signature = "An5ns1Kso7MWUdW4ErQKJJJ4qi4-A-bDDztXNovr1L3Lwm76DmqsU4UT";
			env = Environment.SANDBOX;
			currency = Currency.SGD;
		}
		
		Profile user = new BaseProfile.Builder(userName, password).signature(signature).build();
		paypal = new PayPal(user, env);
	}
}